pub(crate) mod common_resp{
    use serde::Serialize;

    #[derive(Serialize, Debug)]
    pub struct RequestResult<T: Serialize> {
        pub(crate) code: u32,
        pub(crate) message: String,
        pub(crate) data: T,
    }

    #[derive(Serialize, Debug)]
    pub struct RequestResultPage<T: Serialize> {
        pub(crate)  code: u32,
        pub(crate)  message: String,
        pub(crate)  data: Option<Page<T>>,
    }

    #[derive(Serialize, Debug)]
    pub struct Page<T: Serialize>{
        pub(crate) list: T,
        pub(crate) page: u32,
        pub(crate) size: u32,
        pub(crate) total: u32,
    }
}